package com.vecspace.dayu.code.model;

import java.util.List;

import com.vecspace.data.model.NameItem;
import com.vecspace.dayu.code.pojo.DataTable;
import com.vecspace.dayu.code.pojo.Func;
import com.vecspace.dicttable.CodeItem;
import com.vecspace.dicttable.DictAll;

/**
 * 
 * @version 1.0
 * @author wanghua
 */
public class FuncVO {
	private Func func;
	private String tableName;
	private String tableRelationSubtype;
	private List<NameItem> webPageLayouts;
	private List<NameItem> padPageLayouts;
	private List<NameItem> appPageLayouts;
	private List<DataTable> tables;
	private List<String> javaPkgs;

	public List<CodeItem> getTablesRelations(){
		return DictAll.getItems(Func.TablesRelationCode);
	}
	public List<CodeItem> getTableRelationSubtypes(){
		return DictAll.getItems(DataTable.TableRelationSubtype);
	}
	public List<CodeItem> getConfigStatuses(){
		return DictAll.getItems(Func.ConfigStatusCode);
	}

	public FuncVO() {
		
	}
	
	public FuncVO(Func func) {
		super();
		this.func = func;
	}
	public Func getFunc() {
		return func;
	}
	public void setFunc(Func func) {
		this.func = func;
	}
	

	public List<NameItem> getWebPageLayouts() {
		return webPageLayouts;
	}

	public void setWebPageLayouts(List<NameItem> webPageLayouts) {
		this.webPageLayouts = webPageLayouts;
	}

	public List<NameItem> getPadPageLayouts() {
		return padPageLayouts;
	}

	public void setPadPageLayouts(List<NameItem> padPageLayouts) {
		this.padPageLayouts = padPageLayouts;
	}

	public List<NameItem> getAppPageLayouts() {
		return appPageLayouts;
	}

	public void setAppPageLayouts(List<NameItem> appPageLayouts) {
		this.appPageLayouts = appPageLayouts;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public List<DataTable> getTables() {
		return tables;
	}

	public void setTables(List<DataTable> tables) {
		this.tables = tables;
	}

	public List<String> getJavaPkgs() {
		return javaPkgs;
	}

	public void setJavaPkgs(List<String> javaPkgs) {
		this.javaPkgs = javaPkgs;
	}

	public String getTableRelationSubtype() {
		return tableRelationSubtype;
	}

	public void setTableRelationSubtype(String tableRelationSubtype) {
		this.tableRelationSubtype = tableRelationSubtype;
	}
}
